setGlobalDuration(10)

env = genAdsr()
randomh(bus='pit', mini=.75, maxi=2, rate=3, portamento=.005)
sine(pitch=300, envelope=env, pitchVar='pit')

startCsound()
